import { Http } from "../myHttp.jsx"
// 获取System下的表格信息
const getSystem = (params)=>{return Http('/system/getAll','get',params).then((res)=>{ return res})}
// 查询登录用户信息
const getUserInfo = (params)=>{return Http('/login/user','get',params).then((res)=>{ return res})}
// 获取权限管理的所有数据
const getAllAuthority = ()=>{return Http('/authority/getAllAuthority','get').then((res)=>{ return res})}
// 修改管理员用户密码
const ResetAuthority = (params)=>{return Http('/authority/resetPassword','get',params).then((res)=>{ return res})}
// 按需查询信息
const checkAuthority = (params)=>{return Http('/authority/search','get',params).then((res)=>{ return res})}
// 编辑查询数据
const checkOneAuthority = (params)=>{return Http('/authority/getTheOne','get',params).then((res)=>{ return res})}
// 删除权限用户
const deleteAuthority = (params)=>{return Http('/authority/delete','get',params).then((res)=>{ return res})}
// 编辑用户权限
const EditAuthority = (params)=>{return Http('/authority/edit','post',params).then((res)=>{ return res})}
// 添加用户权限
const AddAuthorityUser = (params)=>{return Http('/authority/add','post',params).then((res)=>{ return res})}

export {getAllAuthority,ResetAuthority,checkAuthority,checkOneAuthority,getUserInfo,deleteAuthority,getSystem,EditAuthority,AddAuthorityUser}